﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AMS.DataAccess.Trademark.Interfaces;
using AMS.DataAccess.Trademark.BO;

public partial class Task_ShowTaskSimple : BaseWorkPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Utils.ParseIntQueryString(Request, "id", true, ref taskId))
        {
            Response.Write("参数不正确");
            return;
        }

        if (!IsPostBack)
        {
            DoDataBind();
        }
    }

    int taskId;

    private void DoDataBind()
    {
        ITaskManager taskMgr = ManagerFactory.CreateTaskManager();
        TaskInfo task = taskMgr.GetTask(CallContext, taskId);
        if (task != null)
        {
            ltrContent.Text = task.Note;
            ltrCheckNote.Text = task.CheckNote;
            if (string.IsNullOrEmpty(ltrContent.Text))
            {
                ltrContent.Text = "无";
            }
            if (string.IsNullOrEmpty(ltrCheckNote.Text))
            {
                ltrCheckNote.Text = "无";
            }
        }
    }
}
